package com.web.exiaodao.business.entity;

import com.web.webstart.base.entity.BaseEntity;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 
* @ClassName: Institution 
* @Description: 机构表定义表
* @author eason
* @date 2016-11-04 10:01:30
*
 */
@Entity
@Table(name = "tb_xa_institution")
@ApiModel(value="机构表定义表")
public class Institution extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="机构名称,机构名称")
	private String institution_Name;
	@ApiModelProperty(value="机构首页展示图,机构首页展示图")
	private String institution_pic;
	@ApiModelProperty(value="宣传语Site,宣传语Site")
	private String institution_Site;
	@ApiModelProperty(value="机构电话号码,机构电话号码")
	private String institution_TelPhone;
	@ApiModelProperty(value="参观的价格,参观的价格")
	private Double institution_Price;
	@ApiModelProperty(value="机构介绍 图文形式混排,机构介绍 图文形式混排")
	private String institution_Informations;
	@ApiModelProperty(value="视频链接,视频链接")
	private String institution_VideoUrl;
	@ApiModelProperty(value="机构区域 (国内0,国外1),机构区域 (国内0,国外1)")
	private Long institution_Area;
	/**
	 * @see SysArea
	 */
	@ApiModelProperty(value="城市id, 城市区域id，关联城市区域定义表(SysArea)表")
	private Long sysAreaId;
    @ApiModelProperty(value="机构类型(享老居所0；旅游居所1；养护院2);机构类型(享老居所0；旅游居所1；养护院2)")
    private Long institution_type;
	@ApiModelProperty(value="机构地址;机构地址")
	private String institutionAddress;

	@ApiModelProperty(value = "点击量,点击量")
	private Long clickCont;
	@ApiModelProperty(value="排序值,排序值")
	private Long sort;


	public static final long SORT_DEFAULT = 9999999L;

	public void setInstitution_Name(String institution_Name){
		this.institution_Name=institution_Name;
	}

	@Column(nullable=true,length=255)
	public String getInstitution_pic() {
		return institution_pic;
	}

	public void setInstitution_pic(String institution_pic) {
		this.institution_pic = institution_pic;
	}

	@Column(nullable=true,length=50)
	public String getInstitution_Name(){
		return institution_Name;
	}
	public void setInstitution_Site(String institution_Site){
		this.institution_Site=institution_Site;
	}
	
	@Column(nullable=true,length=100)
	public String getInstitution_Site(){
		return institution_Site;
	}
	public void setInstitution_TelPhone(String institution_TelPhone){
		this.institution_TelPhone=institution_TelPhone;
	}
	
	@Column(nullable=true,length=50)
	public String getInstitution_TelPhone(){
		return institution_TelPhone;
	}
	public void setInstitution_Price(Double institution_Price){
		this.institution_Price=institution_Price;
	}
	
	@Column(nullable=true,length=50)
	public Double getInstitution_Price(){
		return institution_Price;
	}
	public void setInstitution_Informations(String institution_Informations){
		this.institution_Informations=institution_Informations;
	}
	
	@Column(nullable=true,length=50,columnDefinition="MEDIUMTEXT")
	public String getInstitution_Informations(){
		return institution_Informations;
	}
	public void setInstitution_VideoUrl(String institution_VideoUrl){
		this.institution_VideoUrl=institution_VideoUrl;
	}
	
	@Column(nullable=true,length=255)
	public String getInstitution_VideoUrl(){
		return institution_VideoUrl;
	}
	public void setInstitution_Area(Long institution_Area){
		this.institution_Area=institution_Area;
	}
	
	@Column(nullable=true,length=50)
	public Long getInstitution_Area(){
		return institution_Area;
	}

    @Column(nullable=true,length=50)
    public Long getInstitution_type() {
        return institution_type;
    }

    public void setInstitution_type(Long institution_type) {
        this.institution_type = institution_type;
    }

	@Column(nullable=true,length=255)
	public String getInstitutionAddress() {
		return institutionAddress;
	}

	public void setInstitutionAddress(String institutionAddress) {
		this.institutionAddress = institutionAddress;
	}

	@Column(nullable=true,length=50)
	public Long getSysAreaId() {
		return sysAreaId;
	}

	public void setSysAreaId(Long sysAreaId) {
		this.sysAreaId = sysAreaId;
	}

	@Column(nullable = true, length = 50)
	public Long getClickCont() {
		return clickCont;
	}

	public void setClickCont(Long clickCont) {
		this.clickCont = clickCont;
	}

	@Column(nullable = true, length = 50)
	public Long getSort() {
		return sort;
	}

	public void setSort(Long sort) {
		this.sort = sort;
	}

	@Override
	public void setInsertBefore() {
		super.setInsertBefore();
		if (sort == null) {
			sort = SORT_DEFAULT;//排序默认值
		}
	}
}
